﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;
using Lead2012.Models;

namespace Lead2012.ViewModels
{
	public class BaseViewModel
    {
        public string UserId { get; set; }
        public string OwnerId { get; set; }
        public bool IsAdmin { get; set; }
        public string PageType { get; set; }
        public HeaderModel Header { set; get; }
        public MenuModel Menu { get; set; }
        public int TotalRecord { get; set; }
        public int TotalPage { get; set; }
        public int PageIndex { get; set; }
        public int PageSize { get; set; }
        public string SortBy { get; set; }
        public string OrderBy { get; set; }
        public string Keywords { get; set; }
        public string FieldFilter { get; set; }
        public DateTime FromDate { get; set; }
        public DateTime ToDate { get; set; }
	}

    public class MonthItem
    {
        public string NumberMonth { get; set; }

        public string TextMonth { get; set; }
    }

    public class DropdownItem
    {
        [XmlAttribute]
        public string Id { get; set; }

        [XmlAttribute]
        public string ParentId { get; set; }

        [XmlAttribute]
        public string Name { get; set; }
    }
}